//
//  BJSecondForgetPassViewController.m
//  DangXiao
//
//  Created by APPLE on 16/12/9.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJSecondForgetPassViewController.h"

@interface BJSecondForgetPassViewController ()
@property (nonatomic, strong) BJTextAndLineView *passViewTF;
@property (nonatomic, strong) BJLabelAndLineView *passView;
@end

@implementation BJSecondForgetPassViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"忘记密码";
    [self initUIs];
}

-(void)initUIs{
    self.phoneView.nameLabel.text = @"新密码";
    self.phoneViewTF.nameTF.placeholder = @"请输入新密码";
    self.codeView.hidden = YES;
    self.codeViewTF.hidden = YES;
    self.getCodeBtn.hidden = YES;
    [self.nextBtn setTitle:@"确认" forState:(UIControlStateNormal)];

    _passView = [[BJLabelAndLineView alloc]init];
    [self.view addSubview:_passView];
    _passView.nameLabel.text = @"确认密码";
    [_passView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.phoneView.mas_bottom).offset(BILIHEIGHT(20));
        make.left.mas_equalTo(BILIWIDTH(30));
        make.size.equalTo(self.phoneView);
    }];
    
    _passViewTF = [[BJTextAndLineView alloc]init];
    _passViewTF.nameTF.clearButtonMode = YES;
//    [_passViewTF.nameTF addTarget:self action:@selector(didInputCodeNum:) forControlEvents:(UIControlEventTouchDown)];
    _passViewTF.nameTF.placeholder = @"请再次输入密码";
    [self.view addSubview:_passViewTF];
    [_passViewTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_passView.mas_right).offset(BILIWIDTH(10));
        make.top.equalTo(self.codeView);
        make.right.mas_equalTo(BILIWIDTH(-30));
        make.height.mas_equalTo(BILIHEIGHT(30));
    }];


}

#pragma mark ---- 点击“确认”按钮
- (void)didClickNextBtn:(UIButton *)btn{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
